package com.blb.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/supplier")
public class SupplierController {

    @RequestMapping("into")
    public String mysupplier(){
        return"supplier/my_supplier";
    }

    /**
     * 跳转我的供应商首页
     * @param page
     * @return
     * xuyuanxin
     */
    @RequiresPermissions("supplier_permission")
    @RequestMapping("{page}")
    public String myProduct(@PathVariable String page){
        return"supplier/"+page;
    }
}
